
/* File name	: timer.h
 * Project 		: BKIT MCR
 * Version 		: 1.0
 * Creation Date: 07/07/2010
 * Tabsize		: 4
 * Author  		: BKIT4U                   
 * Copyright	: (c) 2010 BKIT HARDWARE CLUB - www.bkit4u.com
 * License		: Free.
 * Comments		: 
 * 
 */

#ifndef	__TIMER_H__
#define __TIMER_H__

/*============================*/
/* Constant setting           */
/*============================*/
#define TIMER_DIV	1

/*============================*/
/* extern variable declaration*/
/*============================*/
extern unsigned char timer_flag;
extern long cn;

extern unsigned long   cnt0;                   
extern unsigned long   cnt1;    
extern unsigned long   cnt2;
extern unsigned long   cnt3;

/*============================*/
/* Prototype declaration      */
/*============================*/
void timer_init();
void timer(long timer_set);
void virtual_timer();

#endif

/****************END FILE**************/

